package cmpe451.group7.ourcity.dao;

import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.util.List;

import cmpe451.group7.ourcity.entity.Comment;
import cmpe451.group7.ourcity.entity.Place;
import cmpe451.group7.ourcity.entity.User;

public interface UserDAO extends GenericDAO<User> {

	User insertNewUser(String name, String surname, String email,
			String password) throws NoSuchAlgorithmException,
			InvalidKeySpecException;

	User findUserByEmail(String email);

	User updateUserInfo(String userInfo, Long userID);

	User updateAboutMe(String aboutMe, Long userID);

	List<Comment> getCommentsofUser(User user);

	boolean likePlace(Place place, User user);

	List<Place> getLikedPlace(User user);

}
